package net.lab1024.sa.admin.module.business.supercomputer.selecttablename.service;

import net.lab1024.sa.admin.module.business.supercomputer.selecttablename.dao.SaveTableNamesDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SaveTableNamesService {

    @Resource
    private SaveTableNamesDao saveTableNamesDao;

    public void saveTableNames(String tableName, Integer sourceId) {
        saveTableNamesDao.saveTableNames(tableName, sourceId);
    }

    public String getTableNameBySourceName(Integer sourceId) {
        return saveTableNamesDao.getTableNameBySourceName(sourceId);
    }
}
